<?php
/**
 *
 * Description:
 * Author: falcon
 * Date: 17/12/1
 * Time: 下午6:21
 *
 */
date_default_timezone_set("Asia/Shanghai");
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed
if(!session_id()) {
    session_start();
}
$app_config =   [
        'app_id' => '你的app id',
        'app_secret' => '你的app secret',
        'default_graph_version' => 'v2.11',
];

$sites_config = [
    'WordPress站点地址',
];
$fb = new \Facebook\Facebook(
    $app_config
    //'default_access_token' => '{access-token}', // optional
);
